import request from "@/index/utils/request"

//添加
export function addContent(data) {
    return request({
        url: "/apis/admin/content/content", method: "post", data
    });
}

//列表
export function contentList(params) {
    return request({
        url: "/apis/admin/content/content", method: "get", params
    });
}

//详情
export function contentDetail(id) {
    return request({
        url: `/apis/admin/content/content/${id}`, method: "get",
    });
}

//删除
export function delContent(id) {
    return request({
        url: `/apis/admin/content/content/${id}`, method: "delete",
    });
}

//更新
export function upDateContent(data, id) {
    return request({
        url: `/apis/admin/content/content/${id}`, method: "put", data
    });
}
